Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No longer test against MySQL 5.7 #5487

Merged
merged 3 commits into from
Sep 14, 2024

Conversation

rturner3
Copy link
Collaborator

MySQL 5.7 is EOL as of October 2023.

Stop using MySQL 5.7 in integration tests, since it is not easy for the project to support end-of-life database versions. Also log a warning when MySQL 5.7 is used with SPIRE.

Importantly, this commit does not remove any existing support for MySQL 5.7. SPIRE may continue to work for some time with MySQL 5.7, but the project makes no compatibility guarantees with MySQL 5.7 anymore, and any existing compatibility with MySQL 5.7 may break at any time without notice.

It is recommended that all SPIRE users using MySQL as a SQL backend upgrade to MySQL 8.0.

Closes #4270.

MySQL 5.7 is EOL as of October 2023.

Stop using MySQL 5.7 in integration tests, since it is not easy for the
project to support end-of-life database versions. Also log a warning
when MySQL 5.7 is used with SPIRE.

Importantly, this commit does not remove any existing support for MySQL
5.7. SPIRE may continue to work for some time with MySQL 5.7, but the
project makes no compatibility guarantees with MySQL 5.7 anymore, and
any existing compatibility with MySQL 5.7 may break at any time without
notice.

It is recommended that all SPIRE users using MySQL as a SQL backend
upgrade to MySQL 8.0.

Signed-off-by: Ryan Turner <[email protected]>
@rturner3 rturner3 force-pushed the remove-mysql-5.7-testing branch from 156feea to 477b75b Compare September 10, 2024 18:22
@amartinezfayo amartinezfayo self-assigned this Sep 10, 2024
@@ -61,6 +64,10 @@ func (my mysqlDB) connect(cfg *configuration, isReadOnly bool) (db *gorm.DB, ver
return nil, "", false, err
}

if version == "5.7" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are getting the version running a SELECT VERSION() query, isn't the version string the complete version number, like 5.7.44?
I'm thinking that this should probably check if the version starts with rather than comparing with a complete string.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, good catch. I changed the logic to check for the version prefix "5.7." so we can handle any 5.7 versions.

Signed-off-by: Ryan Turner <[email protected]>
Copy link
Member

@amartinezfayo amartinezfayo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @rturner3!

@amartinezfayo amartinezfayo merged commit a81a43d into spiffe:main Sep 14, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove support for MySQL 5.7
2 participants